import request from '@/utils/request'
//    根据药品编码查询
export function selectOutDrugByCode(query) {
  return request({
    url: '/drug/outIntermediate/selectDrugCode',
    method: 'get',
    params: query
  })
}

// 查询药品入库和药品中间列表
export function listOutIntermediate(query) {
  return request({
    url: '/drug/outIntermediate/list',
    method: 'get',
    params: query
  })
}

// 查询药品入库和药品中间详细
export function getOutIntermediate(id) {
  return request({
    url: '/drug/outIntermediate/' + id,
    method: 'get'
  })
}

// 新增药品入库和药品中间
export function addOutIntermediate(data) {
  return request({
    url: '/drug/outIntermediate',
    method: 'post',
    data: data
  })
}

// 修改药品入库和药品中间
export function updateOutIntermediate(data) {
  return request({
    url: '/drug/outIntermediate',
    method: 'put',
    data: data
  })
}

// 删除药品入库和药品中间
export function delOutIntermediate(id) {
  return request({
    url: '/drug/outIntermediate/' + id,
    method: 'delete'
  })
}
